Skip to content

Fix some little problems#2

Open
gaunthan wants to merge 2 commits intoIRIM-Technology-Transition-Lab:masterfrom
gaunthan:master
Open

Fix some little problems#2
gaunthan wants to merge 2 commits intoIRIM-Technology-Transition-Lab:masterfrom
gaunthan:master

Conversation

@gaunthan
Copy link
Copy Markdown

@gaunthan gaunthan commented May 9, 2019

  1. The package name for 'cv2' should be 'opencv-python'
  2. Porting to python 3
  3. Allow the directory of input/output to be outside of the working directory

@aparico
Copy link
Copy Markdown

aparico commented Mar 15, 2022

@mjsobrep @varunagrawal Could you please merge this pull request?

@gaunthan
Copy link
Copy Markdown
Author

gaunthan commented Mar 15, 2022 via email

Copy link
Copy Markdown
Member

@mjsobrep mjsobrep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one small change: sanitize directory input.

target_directory = os.path.join(os.getcwd(), directory)
directory_out = os.path.join(os.getcwd(), directory_out)
print "Searching for images in: " + target_directory
target_directory = directory
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should sanitize with expand user

print("Found Images:")
for name in file_names:
print "\t" + name
print("\t" + name)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be great to at some point change all of these to f-strings, but not critical

@mjsobrep
Copy link
Copy Markdown
Member

@aparico I'm mostly OK with this. Just need to add something to the directory to appropriately sanitize it. Have you tested the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants